/**
 * 入口文件
 *
 * @author li.youxi
 * @date 2017/05/31
 */

import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import Root from './containers/Root'
//import Home from './containers/Home/index.js'

import './common.scss'

const rootEl = document.getElementById('youxiPlace');

//如果是微信客户端
var isNotMoMo = navigator.userAgent.toLowerCase().indexOf('micromessenger');
if(isNotMoMo==-1) {
		//如果是在mm客户端内webview
		if(mm&&mm.ui&&mm.ui.setPulldown) {
			mm.ui.setPulldown({
	            type: 0 // Int: 1-允许下拉，0-不允许下拉
	        });

		}
}

render( 
  //<Home/>,
  <Root history={browserHistory} />,
  rootEl
)